package com.donleo.mp.controller;

import com.donleo.mp.mapper.UserMapper;
import com.donleo.mp.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author liangd
 * date 2020-12-09 10:36
 * code
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/findAllUser")
    public List<User> testSelect() {
        return userMapper.selectList(null);
    }
}
